﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;

namespace Cofe.Data
{
    public static class ICofeSystemInfoExtension
    {
        public static void AddTags(this ICofeSystemInfo entry, string tags)
        {
            entry.Properties.Behaviors.Invoke(UserFeedbackProperties.AddTag, new ParameterDic() { TagNames = tags });
        }

        public static void RemoveTags(this ICofeSystemInfo entry, string tags)
        {
            entry.Properties.Behaviors.Invoke(UserFeedbackProperties.RemoveTag, new ParameterDic() { TagNames = tags });
        }

        public static string GetTags(this ICofeSystemInfo entry)
        {
            return entry.Properties.Behaviors.GetProperty<string>(UserFeedbackProperties.Tags);
        }
    }
}
